package com.fivestyle.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fivestyle.common.result.R;
import com.fivestyle.entity.BannerImg;
import com.fivestyle.mapper.BannerImgMapper;
import com.fivestyle.service.BannerImgService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 张代钊
 * @since 2021-08-04
 */
@Service
public class BannerImgServiceImpl extends ServiceImpl<BannerImgMapper, BannerImg> implements BannerImgService {

    @Cacheable(key = "'selectIndexList'",value = "banner")
    @Override
    public List<BannerImg> getBannerToPre() {
        List<BannerImg> list = baseMapper.getBannerToPre();
        return list;
    }
}
